

import time
from celery import Celery

app = Celery('tasks', broker='redis://:foobared@192.168.2.165:6379', backend='redis://:foobared@192.168.2.165:6379')


@app.task
def xxxxxx(x, y):
    time.sleep(10)
    print('---s1---')
    return x + y